import { IRouterConfig } from 'ice';
import Login from '@/pages/Login';
import BasicLayout from '@/layouts/BasicLayout';
import FeedbackNotFound from '@/pages/FeedbackNotFound';
import HealRecoUpdate from '@/pages/HealRecoUpdate';
import HealRecoQuery from '@/pages/HealRecoQuery';

const routerConfig: IRouterConfig[] = [
  {
    path: '/login',
    component: Login,
  },
  {
    component: BasicLayout,
    children: [
      {
        path: '/health-records/update',
        component: HealRecoUpdate,
      },
      {
        path: '/health-records/query',
        component: HealRecoQuery,
      },
      {
        path: '/error/404',
        component: FeedbackNotFound,
      },
      {
        path: '/',
        redirect: '/health-records/update',
      },
    ],
  },
  {
    path: '*',
    redirect: '/error/404',
  },
];
export default routerConfig;
